package com.ufgov.zc.common.sf.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.ufgov.zc.common.util.EmpMeta;
import com.ufgov.zc.common.zc.model.ZcBaseBill;

public class SfEvaluation extends ZcBaseBill {

  public static final String SF_VS_EVALUATION_STATUS = "SF_VS_EVALUATION_STATUS";

  public static final String SEQ_SF_EVALUATION_ID = "SEQ_SF_EVALUATION_ID";

  /**
   * 司法鉴定委托评审页签
   */
  public static final String TAB_ID = "SfEvaluation_Tab";

  /**
   * 司法鉴定委托评审搜索条件
   */
  public static final String SEARCH_ID = "SfEvaluation_search";

  public static final String COL_ENTRUST_ID = "SF_EVALUATION_ENTRUST_ID"; // 委托ID

  public static final String COL_ENTRUST_CODE = "SF_EVALUATION_ENTRUST_CODE"; // 委托ID

  public static final String COL_EVALUATE_DATE = "SF_EVALUATION_EVALUATE_DATE"; // 评审时间

  public static final String COL_EVALUATE_ADDRESS = "SF_EVALUATION_EVALUATE_ADDRESS"; // 评审地点

  public static final String COL_EVALUATION_ID = "SF_EVALUATION_EVALUATION_ID"; // 评审记录ID

  public static final String COL_EVALUATION_OPINIONS = "SF_EVALUATION_EVALUATION_OPINIONS"; // 评审意见

  public static final String COL_INPUTOR = "SF_EVALUATION_INPUTOR"; // 录入人

  public static final String COL_INPUT_DATE = "SF_EVALUATION_INPUT_DATE"; // 录入时间

  public static final String COL_IS_ACCEPT = "SF_EVALUATION_IS_ACCEPT"; // 是否受理

  public static final String COL_ND = "SF_EVALUATION_ND"; // 年度

  public static final String COL_NOT_ACCEPT_REASON = "SF_EVALUATION_NOT_ACCEPT_REASON"; // 不受理原因

  public static final String COL_STATUS = "SF_EVALUATION_STATUS"; // 状态

  public static final String COL_NAME = "SF_EVALUATION_NAME"; // 名称

  public static final String COL_PROCESS_INST_ID = "SF_EVALUATION_PROCESS_INST_ID"; // 工作流实例号

  public static final String COL_REMARK = "SF_EVALUATION_REMARK"; // 备注

  private List evaluationPersons = new ArrayList();

  private String name;

  private String entrustCode;

  private String evaluateAddress;

  private String remark;

  private SfEntrust entrust = new SfEntrust();

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }

  /**
  * This field was generated by MyBatis Generator. This field corresponds to the database column SF_EVALUATION.EVALUATION_ID
  * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
  */
  private BigDecimal evaluationId;

  /**
   * This field was generated by MyBatis Generator. This field corresponds to the database column SF_EVALUATION.EVALUATION_OPINIONS
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  private String evaluationOpinions;

  /**
   * This field was generated by MyBatis Generator. This field corresponds to the database column SF_EVALUATION.EVALUATE_DATE
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  private Date evaluateDate;

  /**
   * This field was generated by MyBatis Generator. This field corresponds to the database column SF_EVALUATION.STATUS
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  private String status;

  /**
   * This field was generated by MyBatis Generator. This field corresponds to the database column SF_EVALUATION.INPURTOR
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  private String inputor;

  /**
   * This field was generated by MyBatis Generator. This field corresponds to the database column SF_EVALUATION.INPUT_DATE
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  private Date inputDate;

  /**
   * This field was generated by MyBatis Generator. This field corresponds to the database column SF_EVALUATION.ENTRUST_ID
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  private BigDecimal entrustId;

  /**
   * This field was generated by MyBatis Generator. This field corresponds to the database column SF_EVALUATION.IS_ACCEPT
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  private String isAccept;

  /**
   * This field was generated by MyBatis Generator. This field corresponds to the database column SF_EVALUATION.NOT_ACCEPT_REASON
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  private String notAcceptReason;

  /**
   * This method was generated by MyBatis Generator. This method returns the value of the database column SF_EVALUATION.EVALUATION_ID
   * @return  the value of SF_EVALUATION.EVALUATION_ID
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public BigDecimal getEvaluationId() {
    return evaluationId;
  }

  /**
   * This method was generated by MyBatis Generator. This method sets the value of the database column SF_EVALUATION.EVALUATION_ID
   * @param evaluationId  the value for SF_EVALUATION.EVALUATION_ID
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public void setEvaluationId(BigDecimal evaluationId) {
    this.evaluationId = evaluationId;
  }

  /**
   * This method was generated by MyBatis Generator. This method returns the value of the database column SF_EVALUATION.EVALUATION_OPINIONS
   * @return  the value of SF_EVALUATION.EVALUATION_OPINIONS
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public String getEvaluationOpinions() {
    return evaluationOpinions;
  }

  /**
   * This method was generated by MyBatis Generator. This method sets the value of the database column SF_EVALUATION.EVALUATION_OPINIONS
   * @param evaluationOpinions  the value for SF_EVALUATION.EVALUATION_OPINIONS
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public void setEvaluationOpinions(String evaluationOpinions) {
    this.evaluationOpinions = evaluationOpinions;
  }

  /**
   * This method was generated by MyBatis Generator. This method returns the value of the database column SF_EVALUATION.EVALUATE_DATE
   * @return  the value of SF_EVALUATION.EVALUATE_DATE
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public Date getEvaluateDate() {
    return evaluateDate;
  }

  /**
   * This method was generated by MyBatis Generator. This method sets the value of the database column SF_EVALUATION.EVALUATE_DATE
   * @param evaluateDate  the value for SF_EVALUATION.EVALUATE_DATE
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public void setEvaluateDate(Date evaluateDate) {
    this.evaluateDate = evaluateDate;
  }

  /**
   * This method was generated by MyBatis Generator. This method returns the value of the database column SF_EVALUATION.STATUS
   * @return  the value of SF_EVALUATION.STATUS
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public String getStatus() {
    return status;
  }

  /**
   * This method was generated by MyBatis Generator. This method sets the value of the database column SF_EVALUATION.STATUS
   * @param status  the value for SF_EVALUATION.STATUS
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public void setStatus(String status) {
    this.status = status;
  }

  /**
   * This method was generated by MyBatis Generator. This method returns the value of the database column SF_EVALUATION.INPURTOR
   * @return  the value of SF_EVALUATION.INPURTOR
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public String getInputor() {
    return inputor;
  }

  /**
   * This method was generated by MyBatis Generator. This method sets the value of the database column SF_EVALUATION.INPURTOR
   * @param inpurtor  the value for SF_EVALUATION.INPURTOR
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public void setInputor(String inputor) {
    this.inputor = inputor;
  }

  /**
   * This method was generated by MyBatis Generator. This method returns the value of the database column SF_EVALUATION.INPUT_DATE
   * @return  the value of SF_EVALUATION.INPUT_DATE
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public Date getInputDate() {
    return inputDate;
  }

  /**
   * This method was generated by MyBatis Generator. This method sets the value of the database column SF_EVALUATION.INPUT_DATE
   * @param inputDate  the value for SF_EVALUATION.INPUT_DATE
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public void setInputDate(Date inputDate) {
    this.inputDate = inputDate;
  }

  /**
   * This method was generated by MyBatis Generator. This method returns the value of the database column SF_EVALUATION.ENTRUST_ID
   * @return  the value of SF_EVALUATION.ENTRUST_ID
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public BigDecimal getEntrustId() {
    return entrustId;
  }

  /**
   * This method was generated by MyBatis Generator. This method sets the value of the database column SF_EVALUATION.ENTRUST_ID
   * @param entrustId  the value for SF_EVALUATION.ENTRUST_ID
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public void setEntrustId(BigDecimal entrustId) {
    this.entrustId = entrustId;
  }

  /**
   * This method was generated by MyBatis Generator. This method returns the value of the database column SF_EVALUATION.IS_ACCEPT
   * @return  the value of SF_EVALUATION.IS_ACCEPT
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public String getIsAccept() {
    if (getEntrust() != null)
      return getEntrust().getIsAccept();
    return isAccept;
  }

  /**
   * This method was generated by MyBatis Generator. This method sets the value of the database column SF_EVALUATION.IS_ACCEPT
   * @param isAccept  the value for SF_EVALUATION.IS_ACCEPT
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public void setIsAccept(String isAccept) {
    if (getEntrust() != null)
      getEntrust().setIsAccept(isAccept);
    this.isAccept = isAccept;
  }

  /**
   * This method was generated by MyBatis Generator. This method returns the value of the database column SF_EVALUATION.NOT_ACCEPT_REASON
   * @return  the value of SF_EVALUATION.NOT_ACCEPT_REASON
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public String getNotAcceptReason() {
    return notAcceptReason;
  }

  /**
   * This method was generated by MyBatis Generator. This method sets the value of the database column SF_EVALUATION.NOT_ACCEPT_REASON
   * @param notAcceptReason  the value for SF_EVALUATION.NOT_ACCEPT_REASON
   * @mbggenerated  Mon Jan 12 18:34:33 CST 2015
   */
  public void setNotAcceptReason(String notAcceptReason) {
    this.notAcceptReason = notAcceptReason;
  }

  public List getEvaluationPersons() {
    return evaluationPersons;
  }

  public void setEvaluationPersons(List evaluationPersons) {
    this.evaluationPersons = evaluationPersons;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getEntrustCode() {
    return entrustCode;
  }

  public void setEntrustCode(String entrustCode) {
    this.entrustCode = entrustCode;
  }

  public String getInputorName() {
    if (inputor != null) {
      return EmpMeta.getEmpName(inputor);
    }
    return inputorName;
  }

  public SfEntrust getEntrust() {
    return entrust;
  }

  public void setEntrust(SfEntrust entrust) {
    this.entrust = entrust;
  }

  public String getEvaluateAddress() {
    return evaluateAddress;
  }

  public void setEvaluateAddress(String evaluateAddress) {
    this.evaluateAddress = evaluateAddress;
  }

  /**
   * 
   */
  private static final long serialVersionUID = -6252224828114142570L;

}